package com.example.mylearn.proxy.learn.once.dynamicProxy.cglibProxy;

import com.example.mylearn.proxy.learn.once.staticProxy.CallKafkaService;
import com.example.mylearn.proxy.learn.once.staticProxy.CallKafkaServiceImpl;
import org.springframework.cglib.proxy.Enhancer;

public class CglibExample {


    public static void main(String[] args) {

        CallKafkaService proxy = (CallKafkaService) CglibProxyFactory.getProxy(CallKafkaServiceImpl.class);

        proxy.call();
    }






}
